Skip to content

Conversation

@lloeki
Copy link
Member

@lloeki lloeki commented Oct 29, 2025

Why?

Frozen bundle is one of the underlying blocks of deployment mode, which is one of the major use cases in the wild.

What does this PR do?

  • Unguard frozen bundle
  • Adjust tests
  • Address failures, if any

How to test the change?

CI

Additional Notes:

Surprisingly frozen bundles appears to work OOTB thanks to using Bundler's own code.

@lloeki lloeki marked this pull request as ready for review October 30, 2025 16:33
@lloeki lloeki requested a review from a team as a code owner October 30, 2025 16:33
Copy link

@sarahchen6 sarahchen6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable! Should we leave a test for Ruby 1.8-2.5 and JRuby 9.2+ where I assume frozen bundles are not supported?

@lloeki
Copy link
Member Author

lloeki commented Oct 31, 2025

Should we leave a test for Ruby 1.8-2.5 and JRuby 9.2+ where I assume frozen bundles are not supported?

In a sense frozen bundle itself is supported on these versions, but injection cannot proceed due to other guardrails, so testing would be a bit... weird:

  • we'd test that it fails to inject... because of other factors such as the version, which is tested already as dedicated tests for these reasons
  • we'd test that the frozen bundle reason is not part of the reason... but there's no code that would produce that reason anymore!

@lloeki lloeki merged commit e2f92ce into main Oct 31, 2025
78 of 79 checks passed
@lloeki lloeki deleted the lloeki/frozen-bundle branch October 31, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants